export interface UserData {
  id?: number
  createTime?: string
  updateTime?: string
  username: string
  password: string
  name: string
  phone?: null | string
  roleName?: string
}

export interface UserInfo {
  records: UserData[]
  total: number
  size: number
  current: number
  orders: []
  optimizeCountSql?: boolean
  hitCount?: boolean
  countId?: string | null
  maxLimit?: string | null
  searchCount?: boolean
  pages: number
}

export interface UserReq {
  code: number
  message: string
  data: UserInfo
  ok: boolean
}

export interface RoleData {
  id?: number
  createTime?: string
  updateTime?: string
  roleName: string
  remark?: null | string
}
export interface RoleRes {
  assignRoles: RoleData[]
  allRolesList: RoleData[]
}
export interface RoleListReq {
  code: number
  message: string
  data: RoleRes
  ok: boolean
}
export interface RoleAdd {
  adminId: string
  roleId: number[]
}
